import Vue from 'vue'
import App from './App.vue'

import router from './router'
import qs from 'qs'
import axios from 'axios'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import echarts from 'echarts'
import Distpicker from 'v-distpicker'
import './css/style.css'

Vue.component('v-distpicker', Distpicker)

Vue.prototype.$axios = axios

Vue.prototype.qs = qs

Vue.prototype.$echarts = echarts

Vue.use(ElementUI)

Vue.config.productionTip = false

Vue.directive('title', {
  inserted: function (el, binding) {
    document.title = el.dataset.title
  }
})

new Vue({
  render: h => h(App),
  router
}).$mount('#app')
